import Vue from 'vue'

import 'normalize.css/normalize.css'// A modern alternative to CSS resets
import './assets/element-theme-custom/index.css'

import ElementUI from 'element-ui'

import App from './App'

import router from './router'
import store from './store'

import './const'
import './permission'
import './icons'

import db from './datastore'
import bus from './utils/message-bus.js'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))

Vue.use(ElementUI)

// noinspection JSUnusedGlobalSymbols
Vue.prototype.$db = db

// noinspection JSUnusedGlobalSymbols
Vue.prototype.$bus = bus

/* eslint-disable no-new */
export default new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
